package OOPS;
interface inter10{
int AB=10;
String msg="gaurav";
void m1();
void display();
}
interface inter2{
int XY=20;
String msg="Ravi";
void m2();
void display();
}
class Hello17 implements inter10,inter2{
public void m1(){
System.out.println("** m1() in Hello from inter1 **");
}
public void m2(){
System.out.println("** m2() in Hello from inter2 **");
}
public void display(){
System.out.println("** display() in Hello comm in inter1,inter2 **");
}
void show(){
System.out.println("** show() in Hello **");
System.out.println("AB\t:"+AB);
System.out.println("XY\t:"+XY);
//System.out.println(msg);
System.out.println(inter10.msg);
System.out.println(inter2.msg);
}
}
class Test62{
public static void main(String str[]){
Hello17 h=new Hello17();
h.m1();
h.m2();
h.show();
h.display();
}
}